<?php
if(!defined("BASEPATH")) exit("No direct script access allowed");

class Feed_back_model extends CI_Model{
    
    public function __construct() {
        parent::__construct();
    }
    
    //lay tong lien he
    public function SumFB($feedstatus = null) {
        $this->db->select("FeedID");
        if($feedstatus != null){
            $this->db->where("FeedStatus", $feedstatus);
        }
        $result = $this->db->get("feedback");
        if ($result->num_rows() > 0) {
            return $result->num_rows();
        } else {
            return $result = 0;
        }
    }
}
?>
